{% comment %} 是否含税 {% endcomment %}
{% comment %}
  产品的 metafields 为空走为 true 的逻辑
  变体的 metafields 为空走为 true 的逻辑
  优先级为变体
{% endcomment %}
{% comment %} product.variants.size {% endcomment %}
{% comment %} {{ product.metafields.custom.is_include_tax }} {% endcomment %}

{% style %}
  .product-tax-container {
    font-size: 0.875rem;
  }
{% endstyle %}

{% if settings.show_tax_in_price %}
  {% if target.metafields.custom.is_include_tax == false %}
    <span class="product-tax-container gray-700 {%- if tax_class %} {{ tax_class }}{% endif -%}">{{ 'products.product_tax.tax_not_included' | t }}</span>
  {% else %}
    <span class="product-tax-container gray-700 {%- if tax_class %} {{ tax_class }}{% endif -%}">{{ 'products.product_tax.tax_included' | t }}</span>
  {% endif %}
{% endif %}
